<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<title>[%$ESPCMS_SOFT_TITLE%]</title>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_font_icon.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_public.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_all.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_framework.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_select.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/pageload.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/file.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]order/order.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery-ui.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.cookie.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_dialog.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/md5.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/json.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/bootstrap.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/lngpack_cn.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_form.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_formvalidation.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_dialog.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_function.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_tool.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_page.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_batch.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_tab.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/nprogress.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/picker_month.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/picker_time.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/fullcalendar/lib/moment.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/fullcalendar/fullcalendar.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/fullcalendar/zh-cn.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/iframeResizer.contentWindow.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_multiple.js"></script>
		<script type="text/javascript">
			$(document).ready(function () {
				banpageKey();
				$('.espcms_dialog_link').espcms_dig();
				$('.espcms_save_cancel').espcms_window_tab('closeTab');
				add_espcms_window_tab();
			});
		</script>
	</head>

	<body class="espcms_style_all">
		<div class="main">
			<div class="espcms_center_content_list">

				<div class="panel">
					<div class="panel-body form_bottom_page">
						<div class="section-divider mb40"><span>[%pack:order_pack-espcms_order_str1%]</span></div>
						<div class="products_itme_list">
							<table class="products_itme_table">
								<thead>
									<tr>
										<th>[%pack:public_pack-espcms_lable_id_name%]</th>
										<th>[%pack:order_pack-espcms_lable_goods_name%]</th>
										<th>[%pack:public_pack-espcms_count%]</th>
										<th class="text-right">[%pack:public_pack-espcms_unit_price%]</th>
										<th class="text-right">[%pack:public_pack-espcms_total_title%]</th>
									</tr>
								</thead>
								<tbody id="inventory_item_list">
									[%forlist from=$product_array key=i%]
									<tr>
										<td class="inventory_itme_id">[%key=>i%]</td>
										<td class="inventory_itme_name"><a target="_blank" class="infolink_14" href="[%$product_array[i].view%]">[%$product_array[i].title%]</a></td>
										<td class="qty_input">[%$product_array[i].amount%]</td>
										<td class="price_str">[%$product_array[i].bprice|espcms_format_money(3)%]</td>
										<td class="right_td price_str">[%$product_array[i].countprice|espcms_format_money(2)%]</td>
									</tr>
									[%/forlist%]
								</tbody>
								<tfoot>
									<tr>
										<td colspan="8" class="total">
											[%pack:order_pack-espcms_order_productmoney%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="order_goods_money_str">[%$read.productmoney|espcms_format_money(2,'')%]</span>）+
											[%pack:order_pack-espcms_order_shippingmoney%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="shippingmoney_str">[%$read.shippingmoney|espcms_format_money(2,'')%]</span>）+
											[%pack:order_pack-espcms_order_paymoney%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="paymoney_str">[%$read.paymoney|espcms_format_money(2,'')%]</span>）+
											[%pack:order_pack-espcms_order_invoicefeemoney%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="invoicefeemoney_str">[%$read.invoicefeemoney|espcms_format_money(2,'')%]</span>）-
											[%pack:order_pack-espcms_order_discount%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="discount_str">[%$read.discount|espcms_format_money(2,'')%]</span>）=
											[%pack:order_pack-espcms_order_total%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="order_total_str">[%$read.orderamount|espcms_format_money(2,'')%]</span>）
										</td>
									</tr>
								</tfoot>
							</table>
						</div>
						<div class="section-divider mb40 mt40"><span>[%pack:order_pack-espcms_order_str2%]</span></div>

						<table class="espcms_view_table">
							<tr>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_ordersn%]</td>
								<td class="col-sm-4">[%$read.ordersn%]</td>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_addtime%]</td>
								<td class="col-sm-4">[%$read.addtime|espcms_timeformat(3)%]</td>
							</tr>
							<tr>
								<td class="title_at1 col-sm-2">[%pack:member_pack-espcms_lable_user_id%]</td>
								<td class="col-sm-4">[%$user_read.username%]</td>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_consignee%]</td>
								<td class="col-sm-4">[%$read.consignee%]</td>
							</tr>
							<tr>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_moblie%]</td>
								<td class="col-sm-4">[%$read.mobile%]</td>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_tel%]</td>
								<td class="col-sm-4">[%$read.tel%]</td>
							</tr>
							<tr>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_address%]</td>
								<td class="col-sm-10" colspan="3">
									[%if $read.province%][%$read.province%]-[%/if%]
									[%if $read.city%][%$read.city%]-[%/if%]
									[%if $read.district%][%$read.district%]-[%/if%]
									[%$read.address%]
								</td>
							</tr>
							[%if $read.isinvoice==1%]
							<tr>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_isinvoice%]</td>
								<td class="col-sm-4">[%pack:order_pack-espcms_order_isinvoice_1%]</td>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_invpayee%]</td>
								<td class="col-sm-4">[%$read.invpayee%]</td>
							</tr>
							<tr>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_companysn%]</td>
								<td class="col-sm-4">[%$read.companysn%]</td>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_invcontent%]</td>
								<td class="col-sm-4">[%$read.invcontent%]</td>
							</tr>
							[%/if%]
							[%if $read.content%]
							<tr>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_content%]</td>
								<td class="col-sm-10" colspan="3">[%$read.content%]</td>
							</tr>
							[%/if%]
						</table>

						<div class="section-divider mb40 mt40"><span>[%pack:order_pack-espcms_order_str4%]</span></div>

						<table class="espcms_view_table">
							<tr>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_ordertype%]</td>
								<td class="col-sm-4">
									[%if $read.ordertype==0 || $read.ordertype==6%]<span class="text-danfei">[%pack:order_pack-espcms_order_ordertype_0%]</span>[%/if%]
									[%if $read.ordertype==1%]<span class="text-orange strong">[%pack:order_pack-espcms_order_ordertype_1%]</span>[%/if%]
									[%if $read.ordertype==2%]<span class="text-green">[%pack:order_pack-espcms_order_ordertype_2%]</span>[%/if%]
								</td>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_islock%]</td>
								<td class="col-sm-4">
									[%if $read.islock==0%]<span class="text-green">[%pack:order_pack-espcms_order_islock_0%]</span>[%/if%]
									[%if $read.islock==1%]<span class="text-danfei">[%pack:order_pack-espcms_order_islock_1%]</span>[%/if%]
								</td>
							</tr>
							<tr>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_isshipping%]</td>
								<td class="col-sm-4">
									[%if $read.isshipping==0%]<span class="text-orange strong">[%pack:order_pack-espcms_order_isshipping_0%]</span>[%/if%]
									[%if $read.isshipping==1%]<span class="text-green">[%pack:order_pack-espcms_order_isshipping_1%]</span>[%/if%]
									[%if $read.isshipping==2%]<span class="text-danfei">[%pack:order_pack-espcms_order_isshipping_2%]</span>[%/if%]
								</td>
								<td class="title_at1 col-sm-2">[%pack:order_pack-espcms_order_ispay%]</td>
								<td class="col-sm-4">
									[%if $read.ispay==0%]<span class="text-orange strong">[%pack:order_pack-espcms_order_ispay_0%]</span>[%/if%]
									[%if $read.ispay==1%]<span class="text-green">[%pack:order_pack-espcms_order_ispay_1%]</span>[%/if%]
									[%if $read.ispay==2%]<span class="text-danfei">[%pack:order_pack-espcms_order_ispay_2%]</span>[%/if%]
								</td>
							</tr>
						</table>

						[%if count($payreceipt_list)>0%]
						<div class="section-divider mb40 mt40"><span>[%pack:order_pack-espcms_order_payreceipt_list_str%]</span></div>
						<div class="panel">
							<div class="panel-body pn">
								<table class="table table-hover">
									<thead>
										<tr class="bg_feishe kill_copy">
											<th class="text-center">[%pack:order_pack-espcms_order_paysn2%]</th>
											<th class="text-center">[%pack:order_pack-espcms_order_paytime2%]</th>
											<th class="text-right">[%pack:order_pack-espcms_order_payamount2%]</th>
											<th class="text-center">[%pack:order_pack-espcms_order_payclass%]</th>
											<th class="text-center">[%pack:order_pack-espcms_order_opid%]</th>
											<th class="text-center">[%pack:public_pack-espcms_lable_addtime%]</th>
											<th class="text-center table_width_200">[%pack:public_pack-espcms_lable_control_name%]</th>
										</tr>
									</thead>
									<tbody id="sortable">
										[%forlist from=$payreceipt_list key=i%]
										<tr data-id="[%$payreceipt_list[i].oprid%]" class="selecticon">
											<td class="text-center">[%if $payreceipt_list[i].paysn=='0'%]/[%else%][%$payreceipt_list[i].paysn%][%/if%]</td>
											<td class="text-center">[%$payreceipt_list[i].paytime|espcms_timeformat(2)%]</td>
											<td class="text-right">[%$payreceipt_list[i].payamount|espcms_format_money(2)%]</td>
											<td class="text-center">
												[%if $payreceipt_list[i].payclass==1%]<span class="text-green">[%pack:order_pack-espcms_order_payclass_1%]</span>[%/if%]
												[%if $payreceipt_list[i].payclass==2%]<span class="text-orange">[%pack:order_pack-espcms_order_payclass_2%]</span>[%/if%]
											</td>
											<td class="text-center">
												[%if $payreceipt_list[i].paytype==1%]<span class="text-green">[%pack:order_pack-espcms_order_opid_1%]（[%$payreceipt_list[i].payname%]）</span>[%/if%]
												[%if $payreceipt_list[i].paytype==0%]<span class="text-orange">[%pack:order_pack-espcms_order_opid_0%]</span>[%/if%]
											</td>
											<td class="text-center">[%$payreceipt_list[i].addtime|espcms_timeformat(3)%]</td>
											<td class="text-center kill_copy">
												<button type="button" class="btn btn-green btn-padding10 btn-xs espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-file-text-o" tab_name="[%pack:order_pack-espcms_order_payreceipt_button_view%]（[%$payreceipt_list[i].paysn%]）" tab_url="[%$payreceipt_list[i].view%]">[%pack:botton_pack-espcms_botton_view%]</button>
											</td>
										</tr>
										[%/forlist%]
									</tbody>
								</table>
							</div>
						</div>
						[%/if%]

						[%if count($shipreceipt_list)>0%]
						<div class="section-divider mb40 mt40"><span>[%pack:order_pack-espcms_order_button_list_shipreceipt%]</span></div>
						<div class="panel">
							<div class="panel-body pn">
								<table class="table table-hover">
									<thead>
										<tr class="bg_feishe kill_copy">
											<th class="text-center">[%pack:order_pack-espcms_order_shippingsn%]</th>
											<th class="text-center">[%pack:order_pack-espcms_order_osid%]</th>
											<th class="text-center">[%pack:order_pack-espcms_order_shippingtime%]</th>
											<th class="text-center">[%pack:public_pack-espcms_lable_addtime%]</th>
											<th class="text-center table_width_200">[%pack:public_pack-espcms_lable_control_name%]</th>
										</tr>
									</thead>
									<tbody id="sortable">
										[%forlist from=$shipreceipt_list key=i%]
										<tr data-id="[%$shipreceipt_list[i].osrid%]" class="selecticon">
											<td class="text-center">[%$shipreceipt_list[i].shippingsn%]</td>
											<td class="text-center">[%$shipreceipt_list[i].shippingname%]</td>
											<td class="text-center">[%$shipreceipt_list[i].paytime|espcms_timeformat(2)%]</td>
											<td class="text-center">[%$shipreceipt_list[i].addtime|espcms_timeformat(3)%]</td>
											<td class="text-center kill_copy">
												<button type="button" class="btn btn-green btn-padding10 btn-xs espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-file-text-o" tab_name="[%pack:order_pack-espcms_order_button_view_shipreceipt%]（[%$shipreceipt_list[i].shippingsn%]）" tab_url="[%$shipreceipt_list[i].view%]">[%pack:botton_pack-espcms_botton_view%]</button>
											</td>
										</tr>
										[%/forlist%]
									</tbody>
								</table>
							</div>
						</div>
						[%/if%]

						<div class="form_button">
							<button type="button" class="btn btn-lightgray min-w-150 espcms_save_cancel">[%pack:botton_pack-espcms_botton_close_dialog%]</button>
						</div>
					</div>
				</div>

			</div>
		</div>
		[%link file="public/load.html"%]
		[%link file="public/load_height.html"%]
	</body>
</html>
